package com.hl.service;

import com.hl.mapper.FieldOfExcellenceMapper;
import com.hl.pojo.FieldOfExcellence;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FieldOfExcellenceServiceImpl implements FieldOfExcellenceService {
    @Autowired
    private FieldOfExcellenceMapper fieldOfExcellenceMapper;

    @Override
    public Integer add(FieldOfExcellence fieldOfExcellence) {
        return fieldOfExcellenceMapper.add(fieldOfExcellence);
    }

    @Override
    public List<FieldOfExcellence> findAll() {
        return fieldOfExcellenceMapper.findAll();
    }

    @Override
    public Integer deleteById(Integer id) {
        return fieldOfExcellenceMapper.deleteById(id);
    }

    @Override
    public FieldOfExcellence findByFieldName(String fieldName) {
        return fieldOfExcellenceMapper.findByFieldName(fieldName);
    }

    @Override
    public FieldOfExcellence findById(Integer id) {
        return fieldOfExcellenceMapper.findById(id);
    }

    @Override
    public Integer update(FieldOfExcellence fieldOfExcellence) {
        return fieldOfExcellenceMapper.update(fieldOfExcellence);
    }
}
